import request from '@/utils/request';
const CancelToken = request.CancelToken;

window.cancel = function() {}
export async function getUserInfo(): Promise<any> {
  return request('/v1/api/user/SysUser/user', {
    method: 'GET',
    cancelToken: new CancelToken(function executor(c) {
      window.cancel = c;
    })
  });
}
